package com.core136.config;

	import org.springframework.boot.context.properties.ConfigurationProperties;
	import javax.validation.constraints.NotNull;

	@ConfigurationProperties(prefix = "cas",ignoreUnknownFields = true)
	public class CasProperties {

	 /**
	  * CAS server URL E.g. https://example.com/cas or https://cas.example. Required.
	  * CAS 服务端 url 不能为空
	  */
	 @NotNull
	 private String serverUrlPrefix;

	 /**
	  * CAS server login URL E.g. https://example.com/cas/login or https://cas.example/login. Required.
	  * CAS 服务端登录地址 上面的连接 加上/login 该参数不能为空
	  */
	 @NotNull
	 private String serverLoginUrl;

	 /**
	  * CAS-protected client application host URL E.g. https://myclient.example.com Required.
	  * 当前客户端的地址
	  */
	 @NotNull
	 private String clientHostUrl;

	 /**
	  * 忽略规则,访问那些地址 不需要登录
	  */
	 private String ignorePattern;

	 /**
	  * 自定义UrlPatternMatcherStrategy验证
	  */
	 private String ignoreUrlPatternType;

	 public String getServerUrlPrefix() {
	  return serverUrlPrefix;
	 }

	 public void setServerUrlPrefix(String serverUrlPrefix) {
	  this.serverUrlPrefix = serverUrlPrefix;
	 }

	 public String getServerLoginUrl() {
	  return serverLoginUrl;
	 }

	 public void setServerLoginUrl(String serverLoginUrl) {
	  this.serverLoginUrl = serverLoginUrl;
	 }

	 public String getClientHostUrl() {
	  return clientHostUrl;
	 }

	 public void setClientHostUrl(String clientHostUrl) {
	  this.clientHostUrl = clientHostUrl;
	 }

	 public String getIgnorePattern() {
	  return ignorePattern;
	 }

	 public void setIgnorePattern(String ignorePattern) {
	  this.ignorePattern = ignorePattern;
	 }

	 public String getIgnoreUrlPatternType() {
	  return ignoreUrlPatternType;
	 }

	 public void setIgnoreUrlPatternType(String ignoreUrlPatternType) {
	  this.ignoreUrlPatternType = ignoreUrlPatternType;
	 }
}
